<?php

namespace App\Models;


class Topic extends Model
{
    protected $table = 'topics';

    public function posts(){
        return $this->belongsToMany('App\Models\Post','topic_posts','topic_id','post_id');
    }


}
